package com.module.app.network

import okhttp3.ResponseBody
import retrofit2.http.*

interface CommonService {


    /**
     * 下载
     */
    @Streaming
    @GET
    suspend fun download(@Url url: String): ResponseBody

    /**
     * 删除七牛云地址
     */

    @POST("http://rs.qiniu.com/delete/{encodedEntryURI}")
    @Headers("Content-Type:application/x-www-form-urlencoded")
    suspend fun delQiniu(
        @Path("encodedEntryURI") encodedEntryURI: String,
        @Header("Authorization") auto: String
    )
}